package com.ihr360.commons.model.type;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ihr360.commons.model.annotation.EnumData;
import com.ihr360.commons.serializer.jackson.EnumDataSerializer;

/** 台账每条记录的数据来源 */
@EnumData
@JsonSerialize(using = EnumDataSerializer.class)
public enum LedgerItemDataSource {
    IMPORT_OFFLINE("线下导入"),
    CALC_ONLINE("线上计算");

    private String title;

    LedgerItemDataSource(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
